//
//  NotificationCenterTableViewCell.swift
//  TJJPT
//
//  Created by FENGYL on 2017/8/1.
//  Copyright © 2017年 FENGYL. All rights reserved.
//

import UIKit

class NotificationCenterTableViewCell: UITableViewCell {
    
    @IBOutlet weak var alertTimeLabel: UILabel!
    @IBOutlet weak var serialNumberLabel: UILabel!
    @IBOutlet weak var displayNameLabel: UILabel!
    @IBOutlet weak var alertTypeLabel: UILabel!
    
    @IBOutlet weak var alertTimeInfoLabel: UILabel!
    @IBOutlet weak var serialNumberInfoLabel: UILabel!
    @IBOutlet weak var displayNameInfoLabel: UILabel!
    @IBOutlet weak var alertTypeInfoLabel: UILabel!
    
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
    }
    
    required init?(coder aDecoder: NSCoder) {
        
        super.init(coder: aDecoder)
        
    }

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    func setUpCell(alarmTime:String?,serialNumber:String?,displayName:String?,alarmType:String?) {
        
        alertTimeLabel.text = NSLocalizedString(LOCALIZABLE_STRING_ALARM_TIME, comment: "") + ":"
        serialNumberLabel.text = NSLocalizedString(LOCALIZABLE_STRING_DEVICE_SERIAL_NUMBER, comment: "") + ":"
        displayNameLabel.text = NSLocalizedString(LOCALIZABLE_STRING_DISPLAY_NAME, comment: "") + ":"
        alertTypeLabel.text = NSLocalizedString(LOCALIZABLE_STRING_ALARM_TYPE, comment: "") + ":"
        
        alertTimeInfoLabel.text = alarmTime
        serialNumberInfoLabel.text = displayName
        displayNameInfoLabel.text = displayName
        alertTypeInfoLabel.text = alarmType
        
    }

}
